<div class="widget member-login-register member-login">
<?php if (!$logged) { ?>
	<div class="content">
		<form method="post" action="<?php echo base_url().'member/login?redirect='.urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])?>" id="validate_field_member_login">
			<div class="formStep">
				<div class="row-fluid">
				<div class="span12">
				<div class="control-group">
				<div class="controls form-actions"><input type="text" id="inputLogin" class="span12 member_emailaddress" name="email" value="<?php echo $text_email_address; ?>"></div>
				</div>
				</div>
				</div>
			</div>
			<div class="formStep">
				<div class="row-fluid">
				<div class="span12">
				<div class="control-group">
				<div class="controls form-actions"><input type="password" id="inputPassword" class="span12 member_password" name="password" value="<?php echo $text_password; ?>"></div>
				</div>
				</div>
				</div>
			</div>
			<div class="formStep">
				<div class="row-fluid">
				<div class="span3">
				<div class="control-group form-actions">
				<div class="controls">
					<input type="submit" value="Login" class="btn btn-primary">
				</div>
				</div>
				</div>
				<div class="span9">
				<div class="control-group form-actions">
				<div class="controls"><input type="button" value="Register As Member"
					class="btn btn-primary arrow-right btn-register"></div>
				</div>
				</div>
				</div>
			</div>
		</form>
	</div>
	<?php } else { ?>
	<div class="w-box">
		<div class="w-box-header"><h4>Account</h4></div>
		<div class="w-box-content cnt_a">
			<ul>
				<li><a href="<?php echo base_url(); ?>member/dashboard">My Account</a></li>
				<li><a href="<?php echo base_url(); ?>shortlist">Short List</a></li>
				<li><a href="<?php echo base_url(); ?>member/logout">Logout</a></li>
			</ul>
		</div>
	</div>
	<?php } ?>
</div>
<div class="formStep"></div>
<div class="widget member-login">
	<div class="title">
		<div class="subscribe-icon">
		<div class="sub-label">Subscribe</div>
		<div class="news-label">Newsletter</div>
		</div>
	</div>
	<!-- /.title -->
	<div class="content">
		<form method="post" action="<?php echo base_url(); ?>newsletter/subscribe/local" enctype="multipart/form-data"  id="validate_field_subscribe_newsletter" >
			<div class="formStep">
				<div class="row-fluid">
				<div class="span12">
				<div class="control-group"><label class="control-label" for="inputEmail">
				Please fill up the information below: </label></div>
				</div>
				</div>
			</div>
			<div class="formStep">
				<div class="row-fluid">
				<div class="span6">
				<div class="control-group">
				<div class="controls"><input type="text" name="firstname" id="inputFirstName" value="<?php echo $text_firstname; ?>" class="span12 member_firstname"></div>
				<!-- /.controls --></div>
				<!-- /.control-group --></div>
				<div class="span6">
				<div class="control-group">
				<div class="controls"><input type="text" name="lastname"
					id="inputLastName" value="<?php echo $text_lastname; ?>" class="span12 member_lastname"></div>
				<!-- /.controls --></div>
				<!-- /.control-group --></div>
				</div>
			</div>
				<div class="formStep">
				<div class="row-fluid">
				<div class="span12">
				<div class="control-group">
				<div class="controls"><input type="text" name="email" id="inputEmail" value="<?php echo $text_email_address; ?>" class="span12 member_emailaddress"></div>
				<!-- /.controls --></div>
				<!-- /.control-group --></div>
				</div>
			</div>
			<div class="formStep">
				<div class="row-fluid">
				<div class="span6">
				<div class="control-group">
				<div class="controls"><select name="cty" id="cty" class="span12">
					<option selected="selected" value=""><?php echo $text_city; ?></option>
					<?php if(count($lkup_cities) > 0) { ?>
					<?php foreach ($lkup_cities as $city) { ?>
					<option value="<?php echo $city->City_ID; ?>"><?php echo $city->Name; ?></option>
					<?php } ?>
					<?php } ?>
				</select></div>
				<!-- /.controls --></div>
				<!-- /.control-group --></div>
				<div class="span6 form-actions">
				<div class="control-group">
				<div class="controls">
					<button class="btn btn-primary arrow-right" type="submit">Submit</button>
				</div>
				<!-- /.controls --></div>
				<!-- /.control-group --></div>
				</div>
			</div>
			<input type="hidden" name="action" value="subscribed" />
		</form>
	</div>
	<!-- /.content -->
</div>
<!-- /.widget -->
